import {Action} from "../../../../configuration/ActionCreator"
import {requestQmsMaterialNewDefault,requestQmsMaterialAdd,requestQmsMaterialEdit} from "../../../../request/QmsMaterial"

/**
 * 获取数据
 * @str {string}
 * @page {int}页数
 */
export const QmsMaterialNewDefault = 'QmsMaterialNewDefault';
export const qmsMaterialNewDefault = (str) => {
    let action = Action(QmsMaterialNewDefault);
    return dispatch => dispatch(requestQmsMaterialNewDefault(action, str))
}


/**
 * 新增耗材
 * @str {string}
 * @page {int}页数
 */
export const QmsMaterialAdd = 'QmsMaterialAdd';
export const qmsMaterialAdd = (str) => {
    let action = Action(QmsMaterialAdd);
    return dispatch => dispatch(requestQmsMaterialAdd(action, str))
}

/**
 * 编辑耗材
 * @str {string}
 * @page {int}页数
 */
export const QmsMaterialEdit = 'QmsMaterialEdit';
export const qmsMaterialEdit = (str) => {
    let action = Action(QmsMaterialEdit);
    return dispatch => dispatch(requestQmsMaterialEdit(action, str))
}



